/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const systemRouter = {
    path: '/deviceRepaired',
    component: Layout,
    redirect: '/deviceRepair/index',
    name: 'deviceRepair',
    meta: {
        title: '设备维修',
        icon: 'table'
    },
    children: [

        {
            path: 'deviceRepair',
            component: () =>
                import ('@/views/device-repair/repairItems'),
            name: 'deviceRepair',
            meta: { title: '设备维修单' },

        },
        {
            path: 'addDeviceRepair',
            component: () =>
                import ('@/views/device-repair/addRepairItems/add'),
            name: 'deviceRepair',
            meta: { title: '新增设备维修单' },

        },
        {
            path: 'detailDeviceRepair',
            component: () =>
                import ('@/views/device-repair/addRepairItems/detail'),
            name: 'deviceRepair',
            meta: { title: '设备维修单详情' },

        },
        {
            path: 'maintenance',
            component: () =>
                import ('@/views/device-repair/maintenance'),
            name: 'maintenance',
            meta: { title: '维护单' },

        },
        {
            path: 'maintenanceAdd',
            component: () =>
                import ('@/views/device-repair/addMaintenance/add'),
            name: 'maintenance',
            meta: { title: '新增维护单' },

        },
        {
            path: 'maintenancDetail',
            component: () =>
                import ('@/views/device-repair/addMaintenance/detail'),
            name: 'maintenance',
            meta: { title: '维护单详情' },

        },
        {
            path: 'EWO',
            component: () =>
                import ('@/views/device-repair/ewo'),
            name: 'maintenance',
            meta: { title: 'ewo' },

        },
        {
            path: 'EWOAdd',
            component: () =>
                import ('@/views/device-repair/addEWO/add'),
            name: 'maintenance',
            meta: { title: '新增EWO' },

        },
        {
            path: 'EWODetail',
            component: () =>
                import ('@/views/device-repair/addEWO/detail'),
            name: 'maintenance',
            meta: { title: 'EWO详情' },

        },
        {
            path: 'repairDays',
            component: () =>
                import ('@/views/device-repair/repairDays'),
            name: 'maintenance',
            meta: { title: '维修排班' },

        },

        // {
        //     path: 'edit/:id',
        //     component: () =>
        //         import ('@/views/device-repair/component/addPlan/index'),
        //     name: 'SystemManage',
        //     meta: { title: '设备点检-新增点检计划' }
        // },
        // {
        //     path: 'detail/:id',
        //     component: () =>
        //         import ('@/views/device-repair/component/addPlan/detail'),
        //     name: 'SystemManage',
        //     meta: { title: '设备点检-点检计划详情' }
        // },
        // {
        //     path: 'program',
        //     component: () =>
        //         import ('@/views/device-repair/program'),
        //     name: 'SystemManage',
        //     meta: { title: '设备点检-点检项管理' }
        // },
        // {
        //     path: 'record',
        //     component: () =>
        //         import ('@/views/device-repair/record'),
        //     name: 'SystemManage',
        //     meta: { title: '设备点检-点检记录' }
        // },
        // {
        //     path: 'recordDetail/:id',
        //     component: () =>
        //         import ('@/views/device-repair/component/addRecord/detail'),
        //     name: 'SystemManage',
        //     meta: { title: '设备点检-点检记录详情' }
        // }
    ]
}
export default systemRouter